package com.orange.handler.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.AuthTeacherDataService;
import com.orange.modules.dao.AuthTeacherDataRepository;
import com.orange.modules.entity.school_data.AuthTeacherData;

@Service
public class AuthTeacherDataServiceImpl  implements AuthTeacherDataService{

	@Autowired
	private AuthTeacherDataRepository authTeacherDataRepository;
	
	@Override
	public void insertTeacherData(AuthTeacherData atd) throws SQLException {
		// TODO Auto-generated method stub
		authTeacherDataRepository.insertTeacherData(atd);
		
	}

	@Override
	public AuthTeacherData queryAuthTeacherDataBySchoolId(String schoolId,
			String loginType) throws SQLException {
		// TODO Auto-generated method stub
		AuthTeacherData atd = authTeacherDataRepository.queryAuthTeacherDataBySchoolId(schoolId, loginType);
		return atd;
	}

}
